<?php
include_once("config.php");

//Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

//Get results from database members
$result = mysql_query("INSERT INTO groups(groupname) VALUES ('" . $_GET['group'] . "')")
or die(mysql_error());

?>
